package edu.washington.cs.pomdb.gui;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;

import javax.swing.JPanel;

import edu.washington.cs.pomdb.ExpCtrl.Observations;


public class ObservationPanel extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 201202281046L;
	private Color c;
	private double radius;
	private double x;
	private double y;
	private Observations observ;
	
	public void setCircle(double x, double y, double r){
		this.radius = r;
		this.x = x;
		this.y = y;
	}
	
	
	
	protected void paintComponent(Graphics g) {
        super.paintComponent(g);    
        Graphics2D g2 = (Graphics2D)g;
        g2.setColor(c);
    	g2.fill(new Ellipse2D.Double(x,y,radius,radius));
        g2.setColor(c);
    }  
	
	public ObservationPanel(Observations o) {
		this.observ = o;
		this.c = observ.getColor();
		this.setBackground(new Color(204, 204, 204));
    }
}
